<?php
declare(strict_types=1);
/**
 * @project: 兔兔找图微信小程序
 * @author: kert
 * @date: 2023/5/22
 * @link: https://www.qqdeveloper.com/
 * @site: 微信搜索-兔兔找图
 */

namespace App\Models\User\Ai;

use Illuminate\Database\Eloquent\Relations\HasMany;

class AiGroup extends \App\Models\Ai\AiGroup
{
    public function app(): HasMany
    {
        return $this->hasMany(AiApp::class, "group_uid", "uid")
            ->where([
                ["is_show", "=", 1]
            ])->orderByDesc("orders");
    }
}
